package com.charlotte.study.gupao.facade.gper;

/**
 * @author junjie.ding
 * @date 2020/3/9
 */
public class GiftInfoFacadeService {

    private QualifyService qualifyService;

    private PaymentServcie paymentServcie;

    private ShippingService shippingService;

    public void exchange(GiftInfo giftInfo){

        if(qualifyService.isAvabile(giftInfo)){
            if(paymentServcie.pay(giftInfo)){
                shippingService.deliver(giftInfo);
            }
        }
    }
}
